﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using DoAnASP;

public partial class _Default : System.Web.UI.Page
{


    protected void Page_Load(object sender, EventArgs e)
    {

    }


    protected void btnHuy_Click(object sender, ImageClickEventArgs e)
    {
        Response.Redirect("~/TrangChu.aspx");
    }

    protected void btnDoiMK_Click1(object sender, ImageClickEventArgs e)
    {
        DTO_NhanVien nv = new DTO_NhanVien();
        BUS_NhanVien nv1 = new BUS_NhanVien();
        nv.Password = ttbMatKhauMoi.Text;
        nv.Username = Session["ThanhVien"].ToString();
        string p = ttbMatKhauCu.Text;
        bool kt = nv1.CapNhatMatKhau(nv,p);
        if (kt == true)
        {
            Session["MaTB"] = 4;
            Response.Redirect("ThongBao.aspx");
        }
    }
}